package com.zz.inventory.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 系统日志对象 system_logs
 * 
 * @author zz
 * @date 2025-07-03
 */
public class SystemLogs extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 日志ID */
    private Long logId;

    /** 日志时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日志时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date logTime;

    /** 日志级别 */
    @Excel(name = "日志级别")
    private String logLevel;

    /** 来源模块 */
    @Excel(name = "来源模块")
    private String sourceModule;

    /** 关联学校ID */
    @Excel(name = "关联学校ID")
    private Long schoolId;

    /** 关联用户ID (平台用户或学校用户) */
    @Excel(name = "关联用户ID (平台用户或学校用户)")
    private Long userId;

    /** 操作描述 */
    @Excel(name = "操作描述")
    private String action;

    /** 日志消息 */
    @Excel(name = "日志消息")
    private String message;

    /** 操作IP地址 */
    @Excel(name = "操作IP地址")
    private String ipAddress;

    public void setLogId(Long logId) 
    {
        this.logId = logId;
    }

    public Long getLogId() 
    {
        return logId;
    }

    public void setLogTime(Date logTime) 
    {
        this.logTime = logTime;
    }

    public Date getLogTime() 
    {
        return logTime;
    }

    public void setLogLevel(String logLevel) 
    {
        this.logLevel = logLevel;
    }

    public String getLogLevel() 
    {
        return logLevel;
    }

    public void setSourceModule(String sourceModule) 
    {
        this.sourceModule = sourceModule;
    }

    public String getSourceModule() 
    {
        return sourceModule;
    }

    public void setSchoolId(Long schoolId) 
    {
        this.schoolId = schoolId;
    }

    public Long getSchoolId() 
    {
        return schoolId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setAction(String action) 
    {
        this.action = action;
    }

    public String getAction() 
    {
        return action;
    }

    public void setMessage(String message) 
    {
        this.message = message;
    }

    public String getMessage() 
    {
        return message;
    }

    public void setIpAddress(String ipAddress) 
    {
        this.ipAddress = ipAddress;
    }

    public String getIpAddress() 
    {
        return ipAddress;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("logId", getLogId())
            .append("logTime", getLogTime())
            .append("logLevel", getLogLevel())
            .append("sourceModule", getSourceModule())
            .append("schoolId", getSchoolId())
            .append("userId", getUserId())
            .append("action", getAction())
            .append("message", getMessage())
            .append("ipAddress", getIpAddress())
            .toString();
    }
}
